import 'package:wch/generated/json/base/json_field.dart';
import 'package:wch/generated/json/report_detail_entity.g.dart';
import 'dart:convert';
export 'package:wch/generated/json/report_detail_entity.g.dart';

@JsonSerializable()
class ReportDetailEntity {
	String? code;
	String? msg;
	ReportDetailData? data;

	ReportDetailEntity();

	factory ReportDetailEntity.fromJson(Map<String, dynamic> json) => $ReportDetailEntityFromJson(json);

	Map<String, dynamic> toJson() => $ReportDetailEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class ReportDetailData {
	String? id;
	String? hospitalId;
	String? doctorId;
	String? sickPersonId;
	String? userName;
	dynamic labelList;
	String? mobile;
	String? sex;
	dynamic age;
	String? hospital;
	String? department;
	String? deviceName;
	dynamic deviceId;
	String? acquisitionNumber;
	dynamic duration;
	String? status;
	String? stageStatus;
	String? stageDataStatus;
	String? fileUrl;
	ReportDetailDataData? data;
	String? startTime;
	String? finishTime;
	dynamic finishType;
	String? createTime;
	String? updateTime;

	ReportDetailData();

	factory ReportDetailData.fromJson(Map<String, dynamic> json) => $ReportDetailDataFromJson(json);

	Map<String, dynamic> toJson() => $ReportDetailDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class ReportDetailDataData {
	String? id;
	String? saasReportId;
	String? signalQuaily;
	dynamic sleepLatency;
	String? lightSleepLatency1;
	String? lightSleepLatency2;
	String? deepSleepLatency1;
	String? deepSleepLatency2;
	String? remBodyMovement;
	String? remBodyMovementIndex;
	String? lightBodyMovement;
	String? lightBodyMovementIndex;
	String? deepBodyMovement;
	String? deepBodyMovementIndex;
	String? totalBodyMovement;
	String? totalBodyMovementIndex;
	String? remWakeTimes;
	String? remWakeTimeIndex;
	String? lightWakeTimes;
	String? lightWakeTimeIndex;
	String? deepWakeTimes;
	String? deepWakeTimeIndex;
	String? totalWakeTimes;
	String? totalWakeTimeIndex;
	String? timeInBed;
	String? sleepPeriodTime;
	String? totalSleepTime;
	String? sleepEnffiency;
	String? remSleepDuration;
	String? lightSleepDuration;
	String? nremSleepDuration;
	String? deepSleepDuration;
	String? wakeDurationTIB;
	String? wakePercentageTIB;
	String? remPercentageTIB;
	String? lightPercentageTIB;
	String? deepPercentageTIB;
	String? wakeDurationSPT;
	String? wakePercentageSPT;
	String? remPercentageSPT;
	String? lightPercentageSPT;
	String? deepPercentageSPT;
	String? remPercentageTST;
	String? lightPercentageTST;
	String? deepPercentageTST;
	String? microArousalTimes;
	String? microArousalIndex;
	List<String>? sleepStage;
	String? recordStart;
	String? recordEnd;
	List<String>? bodyPosition;
	List<String>? bodyMovement;
	dynamic? eventList;

	ReportDetailDataData();

	factory ReportDetailDataData.fromJson(Map<String, dynamic> json) => $ReportDetailDataDataFromJson(json);

	Map<String, dynamic> toJson() => $ReportDetailDataDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}